package com.champ.mc.thread.demo1;

import com.champ.mc.service.demo1.Service1;
import com.champ.mc.service.demo1.Service2;

public class ThreadA extends Thread{
    private Service2 service1;
    public ThreadA(Service2 service1) {
        super();
        this.service1 = service1;
    }

    @Override
    public void run() {
        service1.methodA();
    }
}
